wayland: Properly support changing of surface scale
authorJonas Ådahl <jadahl@gmail.com>
Tue, 24 Feb 2015 08:11:48 +0000 (16:11 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Feb 2015 01:22:02 +0000 (20:22 -0500)
commit56c9eac16eb09a3b0ced91b21cd3f803db8125ca
tree9dd52e46decd1ed19b2065a1482a6c00f1489333
parenta70b478a5c1bf631dc1053b8711d3f6b64ea77e6
wayland: Properly support changing of surface scale

When the preferred surface scale changes, for example when entering a
wl_output with a higher scale than any previous entered output, recreate
the shm surface and redraw the window content with the new window scale.

Before this patch, the internal scale would be changed, but the shm
surface would not be recreated given the new scale, i.e. we'd attach a
buffer for a different scale than wl_surface.set_scale specified.

https://bugzilla.gnome.org/show_bug.cgi?id=745076
gdk/wayland/gdkwindow-wayland.c